if lang == nil then
	lang = {}
end

-- Include idioms here:
include("langauge_en.lua")

CreateClientConVar("ug_default_idiom","en", true, false)

-- "idiom" is optional.
function GetString(tag, idiom)
	if idiom == nil then
		idiom = GetConVarString("ug_default_idiom")
	end
	if lang[idiom][tag] == nil or lang[idiom][tag] == "" then
		if lang["en"][tag] == nil or lang["en"][tag] == "" then 
			return "tag error"
		else
			return tostring(lang["en"][tag])
		end
	else
		return tostring(lang[idiom][tag])
	end
end